<script>
import { getStorage, removeStorage } from '@/utils/auth'
export default {
  onLaunch: function () {
    console.log('App Launch')
  },
  onShow: function () {
    if (!getStorage('Admin-Token')) {
      removeStorage('agreement')
      uni.redirectTo({
        url: `/pages/login/index`,
      })
    }
  },
  onHide: function () {
    console.log('App Hide')
  },
}
</script>
<style lang="scss">
page {
  background: #f5f6fa;
  word-wrap: break-word; /* 允许单词折行 */
  word-break: break-all; /* 允许数字折行 */
}
image {
  vertical-align: top;
}
</style>
